<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        /* align-self属性允许单个项目有与其他项目不一样的对齐方式，
        可覆盖align-items属性。
        默认值为auto，表示继承父元素的align-items属性，
        如果没有父元素，则等同于stretch拉伸。

        .item {
          align-self: auto | flex-start | flex-end | center | baseline | stretch;
         } */
        .div {
            display: flex;
            flex-direction: column;
            align-items: center;
            height: 300px;
            background-color: pink;
        }

        /* .div div{
            width: 100px;
            height: 200px;

        }
        .div div:nth-child(1){
            background-color: aqua;
            align-self: center;
        }
        .div div:nth-child(2){
            background-color: rgb(6, 14, 168);
        } */
    </style>
</head>

<body>
    <div class="div">
        <div>qqq</div>
        <div>ddd</div>
    </div>
</body>

</html>